<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setCharacterEncoding("utf-8");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>注册</title>
	<jsp:include page="includes/meta_and_link.jsp" flush="true" />
</head>

<body>
<!-- 导航栏  -->
	<jsp:include page="includes/header.jsp" flush="true">
		<jsp:param name="header_title" value="营养订餐-注册" />
	</jsp:include>
<!-- 内容  -->
	
	<form class="am-form" action="action/user/register" method="post">
		<fieldset>
			<legend>注册</legend>

			<div class="am-form-group">
				<label for="email">邮箱</label> <input type="email" name="username"
					id="email" placeholder="请输入邮箱账号">
			</div>

			<div class="am-form-group">
				<label for="pwd">密码</label> <input type="password" name="userpwd1"
					id="pwd1" placeholder="请输入密码">
			</div>
			<div class="am-form-group">
				<label for="pwd">确认密码</label> <input type="password" name="userpwd2"
					id="pwd2" placeholder="请再次输入密码">
			</div>
			<center>
				<button type="submit" class="am-btn am-btn-default btn-login">注册</button>
				<br /> <br />
				<%
					if (session.getAttribute("error_type") != null) {
						out.print("<p class=\"p-error\">" + session.getAttribute("error_type") + " </p>");
					}
				%>
			</center>

		</fieldset>
	</form>
	
<!-- 底部栏  -->
	<jsp:include page="includes/footer.jsp" flush="true" />
</body>
</html>